package com.by.fallback;

import com.by.bean.User;
import com.by.remote.UserRemoteClient;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * description:
 * author:zcx
 * lenovo
 * 时间：2022.06.10.15.15
 */
@Component
public class UserFallback implements UserRemoteClient {
    @Override
    public Map queryUser(String id) {
        Map map=new HashMap<>();
        map.put("code",0);
        map.put("msg","服务暂时忙，请稍后访问");

        return map;
    }

    @Override
    public void login(String username, String password) {

    }

    @Override
    public void testGetMap(Map map) {

    }

    @Override
    public void testPostMap(Map map) {

    }

    @Override
    public void testPosrUser(User user) {

    }

    @Override
    public void testSpringquerymap(Map map) {

    }

    @Override
    public void testSpringqueryuser(User user) {

    }
}
